 //**********************************************************
 // PP53.java        Author:20172323wyh
 // 
 // Input a number and static the number of odd, even and 0
 //**********************************************************
 
 import java.util.Scanner;
 
 public class PP53
 {
    public static void main(String[] args)
    {  
       String number; 

       Scanner scan = new Scanner(System.in);

          System.out.println("Enter a integer:");
          number = scan.nextLine();

          int odd = 0, even = 0, zero = 0, left = 0;
          
          while (left <= (number.length() - 1))
              {
                if ((number.charAt(left))%2 == 1)
                   odd++;   
                else
                   {  
                   if (number.charAt(left) == 48)
                      zero++;
                   else
                      even++;
                   }
                left++;
              }
  
        System.out.println("The quantity of odd: " + odd);
        System.out.println("The quantity of even: " + even);
        System.out.println("The quantity of zero: " + zero);
     }
 }
